package com.codeduck.pojo.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.codeduck.pojo.entity.CodeDuckUser;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author 董代恒
 * @version 1.0
 */
@Data
public class CodeDuckUserVO {

    @ApiModelProperty(value = "用户登录token")
    private String token;

    @ApiModelProperty(value = "用户ID，主键")
    private String id;

    @ApiModelProperty(value = "用户名，唯一标识")
    private String username;

    @ApiModelProperty(value = "用户昵称，可为空")
    private String nickname;

    @ApiModelProperty(value = "头像图片链接")
    private String avatarUrl;

    @ApiModelProperty(value = "角色，如 USER（普通用户）、ADMIN（管理员）")
    private String role;

    @ApiModelProperty(value = "状态，如 ACTIVE（活跃）、INACTIVE（停用）")
    private String status;

    @ApiModelProperty(value = "创建人ID")
    @TableField(fill = FieldFill.INSERT)
    private String createdBy;

    @ApiModelProperty(value = "最后修改人ID")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updatedBy;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @ApiModelProperty(value = "最后更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;
}
